macos: Propagate events for child surfaces
authorArjan Molenaar <gaphor@gmail.com>
Mon, 23 Jan 2023 20:45:59 +0000 (21:45 +0100)
committerArjan Molenaar <gaphor@gmail.com>
Tue, 24 Jan 2023 08:07:33 +0000 (09:07 +0100)
Before, popup windows did not respond to mouse clicks.
This change fixes that.

Fixes #5528.

gdk/macos/gdkmacosdisplay-translate.c

index b88ed281ac742d457510ece02fec733ef10bc8cb..615dcf46e26f25c2a35b773e6fbda08ec7c6a577 100644 (file)
@@ -769,7 +769,7 @@ fill_event (GdkMacosDisplay *self,
           {
             ret = GDK_MACOS_EVENT_DROP;
           }
-        else if (grab == NULL)
+        else if (grab == NULL || grab->owner_events)
           {
             if (event_type == NSEventTypeMouseExited)
               [[NSCursor arrowCursor] set];